package com.eastfair.venueservice.service;

import com.eastfair.boot.service.SuperService;
import com.eastfair.venueservice.dto.ExhibitionSettlementRefundDTO;
import com.eastfair.venueservice.entity.ExhibitionSettlementRefund;
import com.eastfair.venueservice.vo.ExhibitionSettlementRefundVO;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 结算退款记录
 * </p>
 *
 * @author linan
 * @date 2023-02-01
 */
public interface ExhibitionSettlementRefundService extends SuperService<ExhibitionSettlementRefund> {
    /**
     * do转vo
     *
     * @param model
     */
    ExhibitionSettlementRefundVO doToVo(ExhibitionSettlementRefund model);

    /**
     * do转vo
     *
     * @param modelList
     */
    List<ExhibitionSettlementRefundVO> doToVos(List<ExhibitionSettlementRefund> modelList);


    /**
     * 通用查询
     *
     * @param modelDTO DTO
     * @param ids      主键id集合
     * @return list
     */
    List<ExhibitionSettlementRefund> list(ExhibitionSettlementRefundDTO modelDTO, List<Long> ids);

    /**
     * 通用查询
     *
     * @param modelDTO DTO
     * @param ids      主键id集合
     * @return list
     */
    List<ExhibitionSettlementRefund> listOfCache(ExhibitionSettlementRefundDTO modelDTO, List<Long> ids);

    /**
     * 保存结算退款记录
     * @param dto dto
     * @return Boolean
     */
    Boolean saveRefundRecord(ExhibitionSettlementRefundDTO dto);

    /**
     * 更新结算退款记录
     * @param dto
     * @return
     */
    Boolean updateRefundRecord(ExhibitionSettlementRefundDTO dto);

    /**
     * 查询结算退款记录
     * @param dto dto
     * @return Boolean
     */
    ExhibitionSettlementRefundVO queryRefundRecord(ExhibitionSettlementRefundDTO dto);
}
